'''
food_list = ['康师傅方便面', '酸奶', '雪糕', '康师傅方便面']

# for循环
for name in food_list:
    print(name)

# while循环
number = len(food_list)
i = 0
while i < number:
    print(food_list[i])
    i += 1
'''
food_list1 = ['康师傅方便面', '酸奶', '雪糕', '康师傅方便面']
food_list2 = ['啤酒', '饮料', '矿泉水']
food_list3 = ['花生', '瓜子', '火腿肠']
food_list = [food_list1,food_list2,food_list3]
# print(food_list)
#
# for item in food_list:
#     print(item)
#     for name in item:
#         print(name)

# for i,value in enumerate(food_list1):
#     print(f'第{i+1}个元素的值是{value}')
for i, value in enumerate(food_list):
    print(f'第{i + 1}个元素的值是{value}')
    for j, name in enumerate(value):
        print(f'第{j + 1}个元素的值是{name}')